const mongoose=require("mongoose");
//定义数据结构
const articalSchema=new mongoose.Schema(
{
    //标题
    artical_title:{
        type:String
    },
    //内容
    artical_sub:{
        type:String
    },
    //图片
    artical_img:{
        type:String
    }
},
{ versionKey: false } //去除__v标识
)
//定义数据模型
mongoose.model("articalModel",articalSchema,"artical")